package com.daxt.model.dto;

import com.daxt.model.service.archives.vo.ArchivesDoc;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.File;
import java.io.FileInputStream;


/**
 * @description: 挂接参数DTO
 *
 * @author: lig
 * @date: 2021/9/2
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MountParamDto {



	//临时文件
	private File tempFile;
	//挂接的实体
	private ArchivesDoc doc;
	//卷件模式
	private String pattern;
	//重命名
	private Boolean isRechristen = true;
	//是否使用文件原名称
	private Boolean isFileRealName;
	//文件原名称
	private String fileRealName;
	//用户id
	private String userId;
	//是否属于从oa系统上传的文件
	private Boolean isOA;

	public  MountParamDto(File tempFile, ArchivesDoc doc, String pattern,String userId){
		this.tempFile = tempFile;
		this.doc = doc;
		this.pattern = pattern;
		this.userId = userId;
	}
	public  MountParamDto(File tempFile, ArchivesDoc doc, String pattern,Boolean isRechristen){
		this.tempFile = tempFile;
		this.doc = doc;
		this.pattern = pattern;
		this.isRechristen = isRechristen;
	}
	public  MountParamDto(File tempFile, ArchivesDoc doc, String pattern,Boolean isRechristen,Boolean isFileRealName,String fileRealName,Boolean isOA){
		this.tempFile = tempFile;
		this.doc = doc;
		this.pattern = pattern;
		this.isRechristen = isRechristen;
		this.isFileRealName = isFileRealName;
		this.fileRealName = fileRealName;
		this.isOA=isOA;
	}

	public  MountParamDto(File tempFile, ArchivesDoc doc, String pattern,Boolean isFileRealName,String fileRealName,String userId){
		this.tempFile = tempFile;
		this.doc = doc;
		this.pattern = pattern;
		this.isFileRealName = isFileRealName;
		this.fileRealName = fileRealName;
		this.userId = userId;
	}


	
}
